﻿using STMS.DAL;
using STMS.Models.DModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STMS.BLL
{
    public class UserBLL
    {
        private UserDAL userDAL = new UserDAL();

        /// <summary>
        /// 登录系统
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        public int LoginSystem(UserInfo userInfo)
        {
            UserInfo reUser = userDAL.Login(userInfo);
            if (reUser != null)
                return reUser.UserId;
            return 0;
        }
    }
}
